package com.dubito.pattern.创建型模式.生成器模式OR建造者模式.计算机生产;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class X201 extends Computer {

    public X201() {
        this.setType("ThinkPad X201i");
    }

    @Override
    public String toString() {
        return String.format("型号:\t%s,\nCPU:\t%s,\n内存:\t%s,\n硬盘:\t%s,\n显示器:\t%s,\n操作系统:\t%s",
                this.getType(), this.getCpu(), this.getRam(), this.getHardDisk(), this.getMonitor(), this.getOs());
    }
}
